#ifndef VIDEO_H_
#define VIDEO_H_

#include "ConfigFile.h"

namespace Lame3d
{
	struct VideoConfig
	{
		int Width;
		int Height;
		int Depth;
		bool Fullscreen;
		
		void Load(ConfigFile &c);
		void Save(ConfigFile &c);
	};
	typedef struct VideoConfig VideoConfig; 
	
	class DisplayManager
	{
		public:
			DisplayManager(const char* configPath="video.conf");
			~DisplayManager();
			
			const VideoConfig& CurrentConfig() const;
			VideoConfig& WorkingConfig();
			
			float Ratio() const;
			
		protected:
			VideoConfig currentConfig;
			VideoConfig workingConfig;
			ConfigFile config;
			
			float ratio;
			
			void startDisplay();
	};
}

#endif /*VIDEO_H_*/
